import { createRouter,createWebHashHistory} from "vue-router";


const router =createRouter({
  mode:"hash",
  history:createWebHashHistory(import.meta.env.BASE_URL),
  routes:[{
     path:"/",
     name:'登陆',
     component:()=>import("@/views/login/Login.vue")
  },
  {
     path:"/home",
     name:'主页',
     component:()=>import("@/views/Layout.vue"),
     redirect:"/meetingMain",
     children:[
      {
        path:"/meetingMain",
        name:'会议主页',
        component:()=>import("@/views/meeting/MeetingMain.vue"),
        meta:{
          code: "meeting"
        }
      },
       {
        path:"/contact",
        name:'通讯录',
        component:()=>import("@/views/contact/Contact.vue"),
        meta:{
          code: "contact"
        }
      }
    ]
  }]
})

export default router;







